﻿@model handvn.Models.Product
@{
    ViewBag.Title = "UserDelete";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@if (Request.IsAuthenticated)
{
    <h2>
        UserDelete</h2>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    using (Html.BeginForm("UserDel", "Product", FormMethod.Post))
    {

    <h3>
        Are you sure you want to delete this?</h3>
    <fieldset>
        <legend>Product</legend>
        @Html.HiddenFor(model => model.ProductID)
        <div class="display-label">
            TenSanPham</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.TenSanPham)
        </div>
        <div class="display-label">
            GiaSanPham</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.GiaSanPham)
        </div>
        <div class="display-label">
            HinhAnh</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.HinhAnh)
        </div>
        <div class="display-label">
            GioiThieu</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.GioiThieu)
        </div>
        <div class="display-label">
            SoLuong</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.SoLuong)
        </div>
        <div class="display-label">
            NgayNhapSanPham</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.NgayNhapSanPham)
        </div>
        <div class="display-label">
            DetailCategories</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.DetailCategories.TenChiTietDanhMuc)
        </div>
    </fieldset>

    <p>
        <input class="tl_btn"type="submit" value="Delete" />
        |
         @Html.ActionLink("Back to List", "UserView", new { UserID = @Session["UserId"] })
    </p>
        
    
    }
}
else
{
    <p>
        Xin vui lòng đăng nhập</p>
    @Html.ActionLink("Đăng nhập", "Login", "Account")
}